<template>
	<view class="white-bg u-p-30"><u-parse :content="noticeInfo.noticeContent" :selectable="true"></u-parse></view>
</template>

<script>
export default {
	data() {
		return {
			noticeId: '',
			noticeInfo: { noticeContent: '' }
		};
	},
	onLoad(option) {
		if (option.id) {
			this.noticeId = option.id;
			this.getMessageInfo();
		}
	},
	methods: {
		async getMessageInfo() {
			const res = await this.$api.notice.noticeInfo({ id: this.noticeId });
			this.noticeInfo = res.data;
		}
	}
};
</script>

<style lang="scss"></style>
